const express = require('express');
const router = express.Router();
const authMiddleware = require('../middlewares/authMiddleware');
const reminderController = require('../controllers/healthReminderController');

// 所有路由需要认证
router.use(authMiddleware);

// 获取用户的所有健康提醒
router.get('/', reminderController.getAllReminders);

// 获取特定健康提醒详情
router.get('/:id', reminderController.getReminderById);

// 创建新的健康提醒
router.post('/', reminderController.createReminder);

// 更新健康提醒信息
router.put('/:id', reminderController.updateReminder);
router.patch('/:id', reminderController.updateReminder);

// 删除健康提醒
router.delete('/:id', reminderController.deleteReminder);

module.exports = router; 